//
//  AFNetApiClient.h
//  xyl
//
//  Created by EPWK on 15-1-8.
//  Copyright (c) 2015年 YLP. All rights reserved.
//

#import "AFHTTPRequestOperationManager.h"

typedef void (^AFAPISuccess) (AFHTTPRequestOperation *operation, id responseObject);
typedef void (^AFAPIFailure) (AFHTTPRequestOperation *operation, NSError *error);

@interface AFNetApiClient : AFHTTPRequestOperationManager

+ (instancetype)sharedClient;
//取消网络请求
- (void)cancleOperation;

//注册
- (void)requestRegisterWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//登录
- (void)requestLoginWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;
//登出
- (void)requestLogoutWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;
//忘记密码
- (void)requestForgetPassWordWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//关于我们
- (void)requestAboutUsWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//支付通道
- (void)requestChargeChannelListWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//支付 充值
- (void)requestChargeMoneyWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;
//提现
- (void)requestTakeofMoneyWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;
//支付
- (void)requestPayMoneyWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//充值记录
- (void)requestChargeHistoryWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;

//获取 用户协议type=agreement  客服中心type=custService
- (void)requestUserCenterWithParams:(NSDictionary *)params success:(AFAPISuccess)success failure:(AFAPIFailure)failure;


@end
